import http from "@/api/axios";

//获取全局消息
export const getBizMessageNoticeApi = () => {
  return http({
    method: "post",
    url: `/base/biz/messageNotice/getBizMessageNotice`
  });
};

//获取全局信息列表
export const getBizMessageNoticeCountApi = () => {
  return http({
    method: "get",
    url: `/base/biz/messageNotice/getBizMessageNoticeCount`
  });
};

//状态改为已读（改后不显示）
export const updateStatusApi = (data: { id: string }) => {
  return http({
    method: "post",
    url: `/base/biz/messageNotice/updateStatus`,
    data
  });
};
